﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Domain
{
    /// <summary>
    /// 数据实体基类
    /// </summary>
    [Serializable]
    public abstract class DataEntity : Entity, IManipulator
    {
        #region 创建者 CreateBy
        /// <summary>
        /// 创建者
        /// </summary>
        public int CreateBy
        {
            get { return (int)GetProperty(); }
            set { SetProperty(value); }
        }
        #endregion

        #region 创建时间 CreateDate
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate
        {
            get { return (DateTime)GetProperty(); }
            set { SetProperty(value); }
        }
        #endregion

        #region 更新者 UpdateBy
        /// <summary>
        /// 更新者
        /// </summary>
        public int UpdateBy
        {
            get { return (int)GetProperty(); }
            set { SetProperty(value); }
        }
        #endregion

        #region 更新日期 UpdateDate
        /// <summary>
        /// 更新日期
        /// </summary>
        public DateTime UpdateDate
        {
            get { return (DateTime)GetProperty(); }
            set { SetProperty(value); }
        }
        #endregion
    }
}
